<template>
    <span>logout ...</span>
</template>

<script>
    export default {
        name: "logout",
        created() {
            this.logout();
        },
        methods: {
            async logout() {
                console.log('logout');
                await this.$store.dispatch('user/logout')
                this.$router.push(`/login`)
            }
        }
    }
</script>

<style scoped>

</style>